package org.jeecg.modules.meter.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.model.meter.resvo.MeterUseListRespVo;
import org.jeecg.modules.meter.mapper.MeterUseMapper;
import org.jeecg.modules.meter.service.IMeterUseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 1
 * @Author: jeecg-boot
 * @Date:   2021-02-28
 * @Version: V1.0
 */
@Service
public class MeterUseServiceImpl extends ServiceImpl<MeterUseMapper, MeterUseListRespVo> implements IMeterUseService {
    @Autowired
    private MeterUseMapper meterUseMapper;
    @Override
    public List<MeterUseListRespVo> queryUseList(Page<MeterUseListRespVo> page, MeterUseListRespVo meterDayReportReqVo) {
        return meterUseMapper.queryUsePageList(page,meterDayReportReqVo);
    }

    @Override
    public MeterUseListRespVo queryUseCount(MeterUseListRespVo meterUseListRespVo) {
        return meterUseMapper.queryUseCount(meterUseListRespVo);
    }


}
